﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Abp.Application.Services.Dto;
using Abp.Authorization.Roles;
using Abp.AutoMapper;
using SingleUserMall.Authorization.Roles;

namespace SingleUserMall.Roles.Form
{
    [AutoMapTo(typeof(Role))]
    public class RoleForm:EntityDto
    {
        /// <summary>
        /// 名称
        /// </summary>
        [Required]
        [StringLength(AbpRoleBase.MaxNameLength)]
        public string Name { get; set; }
        /// <summary>
        /// 权限
        /// </summary>
        public List<string> Permissions { get; set; }
    }
}